package com.xsx.mybatis.bean;

import java.io.Serializable;
import java.util.List;

public class Dept implements Serializable{
	private Integer id;
	private String detname;
	private List<Users> users;

	

	public Dept() {
		super();
	}

	public Dept(Integer id, String detname) {
		super();
		this.id = id;
		this.detname = detname;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Dept [id=" + id + ", detname=" + detname + "]";
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the detname
	 */
	public String getDetname() {
		return detname;
	}
	/**
	 * @return the users
	 */
	public List<Users> getUsers() {
		return users;
	}

	/**
	 * @param users
	 *            the users to set
	 */
	public void setUsers(List<Users> users) {
		this.users = users;
	}

	/**
	 * @param detname
	 *            the detname to set
	 */
	public void setDetname(String detname) {
		this.detname = detname;
	}

}
